﻿using System;

namespace DannyFramework.Results
{
    /// <summary>
    /// 业务异常详情
    /// </summary>
    public class CommonException : Exception
    {
        public CommonException()
        {
        }

        public CommonException(int Code, string ErrorInfo, string Message)
        {
            this.Code = Code;
            this.ErrorInfo = ErrorInfo;
            this.Message = Message;
        }

        /// <summary>
        /// 状态码
        /// </summary>
        public int Code { get; set; }
        /// <summary>
        /// 错误信息
        /// </summary>
        public string ErrorInfo { get; set; }
        /// <summary>
        /// 状态提示
        /// </summary>
        public string Message { get; set; }
    }
}
